<?php

use Illuminate\Routing\Router;

Route::group(
    [
        'prefix' => 'admin/Oauthadmin',
        'namespace' => 'Frieza\\Modules\\Oauthadmin\\Controllers',
        'middleware' => [
            'web',
            'admin'
        ],
    ], function (Router $router){
        //注销用户
        $router->get("/unregister", "UnregisterController@index");
        $router->post("/cancellationUser", "UnregisterController@cancellationUser"); // 注销
        $router->post("/ignoreUser", "UnregisterController@ignoreUser"); // 忽略

        $router->get("/unregisterDealedList", "UnregisterDealedListController@index");

        //封禁用户
        $router -> get("/banerList", "BanerListController@index");

        //头像审核
        $router->get("/avatarCheck", "AvatarCheckController@index");
        $router->post("/setDefault", "AvatarCheckController@setDefault");

});